package com.lupan.mutithred.cp1_SemaphoreAndExchanger;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/3/30 11:19
 */
public class MyThread extends Thread {
    private Service service;

    public MyThread(Service service) {
        this.service = service;
    }

    @Override
    public void run(){
        try {
            service.sayHello();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
